<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>径向渐变-radial-gradient</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: pink;
            border-radius: 50%;

            /* 径向渐变 */
            /*
            background-image: radial-gradient(
                [渐变半径] at [圆点x轴位置] [圆点y轴位置],
                渐变颜色 [该颜色渐变距离],
                渐变颜色 [该颜色渐变距离]
            );

            */
            /*background-image: radial-gradient(*/
            /*        50px at center center,*/
            /*        red,*/
            /*        pink*/
            /*);*/

            /* 可以写两个半径，画出来的是一个椭圆 */
            background-image: radial-gradient(
                    50px 30px at center center,
                    red,
                    pink
            );
        }

        button {
            width: 100px;
            height: 40px;
            background-color: green;
            border: 0;
            border-radius: 5px;
            color: #fff;

            background-image: radial-gradient(
                    30px at center center,
                    rgba(255,255,255,0.4),
                    transparent

            );
        }
    </style>
</head>
<body>
<div></div>
<button>按钮</button>
</body>
</html>
